import tornado.web
from Art.PicCarwler import Send
class MainHandler( tornado.web.RequestHandler ):
    def get( self ):
        self.write(Send.send_request("http://www.setuw.com/tag/dongman/", "text"))
        self.write( 'Tornado Says: Hello World !' )

application = tornado.web.Application( [
        ( r'/', MainHandler ),
        ])

if __name__ == '__main__':
    application.listen( 8889 )
    print( 'Listening port : 8889 ...' )
    tornado.ioloop.IOLoop.instance().start()
    print( 'Tornado Instance started ...' )